class LoginEntity {
	String msg;
	int code;
	LoginData data;

	LoginEntity({this.msg, this.code, this.data});

	LoginEntity.fromJson(Map<String, dynamic> json) {
		msg = json['msg'];
		code = json['code'];
		data = json['data'] != null ? new LoginData.fromJson(json['data']) : null;

	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['msg'] = this.msg;
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		return data;
	}
}

class LoginData {
	int type;
	String token;
  String im;
  String sig;
	LoginData({this.type, this.token});

	LoginData.fromJson(Map<String, dynamic> json) {
		type = json['type'];
		token = json['token'];
    im = json['im'];
    sig = json['sig'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['type'] = this.type;
		data['token'] = this.token;
    data['im'] = this.im;
    data['sig'] = this.sig;
		return data;
	}
}
